package com.example.springboot_manage;

import com.example.springboot_manage.model.Admin;
import com.example.springboot_manage.model.AdminWithBLOBs;
import com.example.springboot_manage.repository.AdminMapper;
import com.example.springboot_manage.util.Md5Util;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class Md {

    @Autowired
    private AdminMapper adminMapper;

    @Test
    public void test(){
        AdminWithBLOBs admin = new AdminWithBLOBs();
        admin.setUserName("lisi");
        admin.setPassword(Md5Util.getMd5WithSalt("123123",""));
        admin.setEmail("123456@qq.com");
        admin.setAddTime(1472610878);
        admin.setLastLogin(1473055070);
        admin.setLastIp("192.168.88.1");
        admin.setAgencyId((short) 0);
        admin.setLangType("");
        admin.setNavList("");
        int s = adminMapper.insertSelective(admin);
        int st =0;

    }


}
